<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<div th:fragment="nav">
    <!--导航栏-->
    <nav class="ui inverted gird-header" >
        <div class="ui container">
            <div class="ui inverted secondary stackable menu">
                <h2 class="ui olive header item" style="font-family: STSong">管理后台</h2>
                <a href="#" th:href="@{/admin/blogs}" class=" m-item item m-mobile-hide" th:classappend="${active == 'blogs'}?'active'"><i class="home icon"></i>文章管理</a>
                <a href="#" th:href="@{/admin/types}" class=" m-item item m-mobile-hide" th:classappend="${active == 'types'}?'active'"><i class="clone outline icon"></i>分类管理</a>
                <a href="#" th:href="@{/admin/friendlinks}" class=" m-item item m-mobile-hide" th:classappend="${active == 'friendlinks'}?'active'"><i class="pencil alternate icon"></i>友链管理</a>
                <a href="#" th:href="@{/admin/pictures}" class=" m-item item m-mobile-hide" th:classappend="${active == 'pictures'}?'active'"><i class="image icon"></i>相册管理</a>
                <div class="right m-item m-mobile-hide menu">
                    <div class="ui dropdown  item">
                        <div class="text">
                            <img class="ui avatar image" src="/static/images/me.jpg" th:src="${session.user.avatar}">
                            <span th:text="${session.user.nickname}">oneStar</span>
                        </div>
                        <i class="dropdown icon"></i>
                        <div class="menu">
                            <a href="#" th:href="@{/admin/logout}" class="item">注销</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
            <i class="sidebar icon"></i>
        </a>
    </nav>
</div>
</body>
</html>